﻿using GN.Pay.Utils;
using GN.Pay.Utils.Reflection;
using GN.Pay.Utils.Reflection.Meta;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GN.Pay.TradeChannel.Gyb.Response
{
    /// <summary>
    /// 通知响应实体
    /// </summary>
    [Serializable]
    public abstract class NotifyResponseEntity : AResponse
    {
        /// <summary>
        /// 实例化 NotifyResponseEntity
        /// </summary>
        /// <param name="plain"></param>
        protected NotifyResponseEntity(IDictionary<string, string> plainDic)
        {
            this.LoadProperty(plainDic);
        }

        /// <summary>
        /// 响应码(00=表示成功)
        /// </summary>
        public string RespCode { get; set; }        

        /// <summary>
        /// 是否成功
        /// </summary>
        public bool IsSuccess()
        {
            return "00".Equals(RespCode);
        }
    }
}
